package com.htj.erp.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * 地址信息
 *
 * LocationVo
 * 
 * chenghongtao
 * chenghongtao
 * 2016年9月5日 下午2:44:13
 * 
 * @version 1.0.0
 *
 */
public class LocationVo {
    
    private Long recvId;
    /**
     * 区
     */
    private String region;
    
    private String name;
    
    private String address;
    
    //经度
    private String longitude;
    
    //纬度
    private String latitude;
    
    public LocationVo() {
        super();
    }
    
    public LocationVo(String region, String name, String address, String longitude, String latitude) {
		super();
		this.region = region;
		this.name = name;
		this.address = address;
		this.longitude = longitude;
		this.latitude = latitude;
	}

	public LocationVo(String region, String name, String address) {
        super();
        this.region = region;
        this.name = name;
        this.address = address;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }


    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((latitude == null) ? 0 : latitude.hashCode());
		result = prime * result
				+ ((longitude == null) ? 0 : longitude.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}


	@Override
	public String toString() {
		return "LocationVo [recvId=" + recvId + ", region=" + region
				+ ", name=" + name + ", address=" + address + ", longitude="
				+ longitude + ", latitude=" + latitude + "]";
	}

	public Long getRecvId() {
		return recvId;
	}

	public void setRecvId(Long recvId) {
		this.recvId = recvId;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LocationVo other = (LocationVo) obj;
		if (latitude == null) {
			if (other.latitude != null)
				return false;
		} else if (!latitude.equals(other.latitude))
			return false;
		if (longitude == null) {
			if (other.longitude != null)
				return false;
		} else if (!longitude.equals(other.longitude))
			return false;
		return true;
	}

	 
	 
 

    
    
    
}
